<div id="corps">
	<br/>
	<div class="boite_filtres" id='zone_filtre'>
		<div class="boite_filtres_haut">
			<div></div>
		</div>
		<div class="boite_filtres_contenu" >
			<form>
				<table>
					<tr>
						<span id="filtre_impulseur"> 
						<td>Impulseurs</td>
						<td>
							<select name='impulseur'>
								<option VALUE='all'>Tous</option>
								<?php //Récupération des impulseurs
								//Connexion à la BDD
								include ("../commun_shop/utils/settings_bdd_pg.php"); mysql_connect($host_bd, $id_bd , $mdp_bd);
								mysql_select_db("vanadium");mysql_query("SET NAMES 'UTF8'");
								
								//Lecture des impulseur
								$retour_impulseurs = mysql_query("SELECT id_shop FROM shop ORDER BY id_shop ASC") or die(mysql_error()) ;

								//Ecriture du nom des shop
								while ($impulseurs = mysql_fetch_array($retour_impulseurs))
								{
									echo "<option VALUE='".$impulseurs['id_shop']."'>".$impulseurs['id_shop']."</option>";
								}
								echo "
										<option VALUE='autres'>Autres</option>
							</select>";
								$consommateur = $_SESSION['id_client_connecte'];
								$nbr_entrees = mysql_query("SELECT COUNT(id) FROM historique WHERE id_consommateur ='$consommateur'") or die(mysql_error()) ;
								$nbr_entrees = mysql_fetch_array($nbr_entrees);
								//Fermeture de la connexion
								mysql_close();
						echo "
										</td>
											</span>
											<td>Page</td>
											<td>
								<div id='nbr_pages'>
									<select name='page'>
									";
									for ($i = 1; $i <= ($nbr_entrees[0]/50)+1; $i++)
									{
										echo "<option VALUE='$i'>".$i."</option>";
									}
									?>
									
									</select>
							</div>
						</td>
					</tr>
				</table>
			</form>
		</div>
		<input type="hidden" id="compte_consommateur" value="<?php echo $_SESSION['id_client_connecte']; ?>"/>
		<div class="boite_filtres_bas">
			<div></div>
		</div>
	</div>
	<div id="tableau_historique">
		
	</div>
</div>
